<template>
  <form method="post">
    <textarea id="mytextarea">Hello, World!</textarea>
  </form>
</template>

<script>
import '@npkg/tinymce-plugins'
const tinymce = window.tinymce
export default {
  name: 'Home',
  components: {

  },
  data () {
    return {
      Html: ''
    }
  },
  mounted () {
    tinymce.init({
      selector: '#mytextarea',
      language: 'zh_CN',
      menubar: false,
      branding: false,
      min_height: 400,
      max_height: 700,
      plugins: 'print preview clearhtml searchreplace autolink layout fullscreen image upfile link media code codesample table charmap hr pagebreak nonbreaking anchor advlist lists textpattern help emoticons autosave bdmap indent2em lineheight formatpainter axupimgs powerpaste letterspacing imagetools quickbars attachment wordcount autoresize importword',
      toolbar: ['|code formatselect fontselect fontsizeselect forecolor backcolor bold italic underline strikethrough link alignment indent2em outdent indent lineheight letterspacing bullist numlist blockquote subscript superscript  layout removeformat table image media upfile attachment importword  hr pagebreak  clearhtml formatpainter  cut copy undo redo restoredraft  searchreplace fullscreen help'],
      table_style_by_css: true
    })
  },
  methods: {

  }
}
</script>
